<template>
  <div>
    <div class="monitoring-container">
      <div v-for="(image, index) in images" :key="index" class="monitoring-item">
        <div class="image-container">
          <span class="monitoring-label">监控{{ index + 1 }}</span>
          <img :src="image" alt="监控贴图" class="monitoring-image">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Topbar from "@/components/Topbar.vue";
import Monitoringbar from "@/components/Monitoringbar.vue";

export default {
  name: "role1Monfour",
  components: { Topbar, Monitoringbar },
  data() {
    return {
      images: [
        require('@/images/a1.jpg'),
        require('@/images/a2.png'),
        require('@/images/a3.jpg'),
        require('@/images/a4.jpg'),
        require('@/images/a5.jpg'),
        require('@/images/a6.jpg'),
      ],
    };
  },
};
</script>

<style scoped>
.monitoring-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.monitoring-item {
  width: calc(33.33% - 10px);
  margin-bottom: 20px;
}

.image-container {
  position: relative;
}

.monitoring-label {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 5px;
  border-radius: 5px;
  font-size: 12px;
}

.monitoring-image {
  width: 100%;
  border-radius: 5px;
}
</style>
